package cn.skycity.framework.core.constants;

public interface GlobalConstants {
    String DEFAULT_USER_PASSWORD = "123456";
    String ROOT_ROLE_CODE = "ROOT";
    String URL_PERM_ROLES_KEY = "system:perm_roles_rule:url:";
    String BTN_PERM_ROLES_KEY = "system:perm_roles_rule:btn:";
    /**
     * 全局 redis key (业务无关的key)
     */
    String GLOBAL_REDIS_KEY = "global:";
    /**
     * 验证码 redis key
     */
    String CAPTCHA_CODE_KEY = GLOBAL_REDIS_KEY + "captcha_codes:";

    /**
     * 限流 redis key
     */
    String RATE_LIMIT_KEY = GLOBAL_REDIS_KEY + "rate_limit:";

    Integer STATUS_YES = 1;

    Integer STATUS_NO = 0;
    String USER_FORBIDDEN = "2";            //账户被禁用
    String USER_LOCK = "3";              //账户被锁定
    String USER_EXPIRED = "4";       //账户过期


    String GRANT_TYPE_PASSWORD = "password";

    String FEIGN_FLAG = "mobile";

    String TRACE_ID = "traceId";

    String LOCALE = "locale";

    String USER = "user";

    String USER_ID = "userId";

    String USER_NAME = "userName";

    String STAUTS_DISABLED = "0";

    String SEPARATOR = ",";
}
